// Laby3.cpp : main project file.

#include "stdafx.h"
#include "FormNbJoueurs.h"
#include "Form1.h"
#include "FormEnd.h"

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	// Enabling Windows XP visual effects before any controls are created
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false); 
	Jeu j;

	//Form1^ f = gcnew Form1(&j);
	// Create the main window and run it
	int i =1;
	FormNbJoueurs^ f = gcnew FormNbJoueurs(&i);
	Application::Run(f);

	j.initialiserPartie(i);

	Form1^ f1 = gcnew Form1(&j);
	Application::Run(f1);

	Application::Run(gcnew FormEnd());


}
